<?
 
session_start();
if(!isset($_SESSION['uid'])){
	header( 'Location: ./index.php' ) ;
}

function notify($type, $msg){
	$_SESSION['notification']['type'] = $type;
	$_SESSION['notification']['msg'] = $msg;
}

function resetnotify(){
	$_SESSION['notification']['type'] = "none";
	$_SESSION['notification']['msg'] = "";
}
?>